<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs for page common.php</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=utf-8'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="file-name"><img src="../media/images/Page_logo.png" alt="File" style="vertical-align: middle">/core/Common/common.php</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-functions">Functions</a>
			</div>
	<div class="info-box-body">	
		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">共用函数</p>
<p class="description"><p>本程序主要作用定义系统共用的函数</p></p>
	<ul class="tags">
				<li><span class="field">author:</span> 张旭刚</li>
				<li><span class="field">version:</span> v1.0 beta</li>
				<li><span class="field">copyright:</span> Copyright (c) ink工作室 (http://www.inkphp.com)</li>
			</ul>
		
			</div>
</div>
		

	
	
	
	<a name="sec-functions"></a>	
	<div class="info-box">
		<div class="info-box-title">Functions</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<span class="disabled">Functions</span>
		</div>
		<div class="info-box-body">	
			<a name="functioncheck" id="functioncheck"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">check</span> (line <span class="line-number">36</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">处理字符串，防注入处理</p>
	<ul class="tags">
				<li><span class="field">return:</span> 过滤之后的字符串</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">type</span>
		<span class="method-name">
			check
		</span>
					(<span class="var-type">type</span>&nbsp;<span class="var-name">$text</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$text</span><span class="var-description">: 要过滤的字符串</span>			</li>
				</ul>
		
	
</div>
<a name="functioncheckApp" id="functioncheckApp"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">checkApp</span> (line <span class="line-number">247</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">自动生成初始App的方法</p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			checkApp
		</span>
				()
			</div>

		
	
</div>
<a name="functioncheckData" id="functioncheckData"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">checkData</span> (line <span class="line-number">303</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">自动生成上传文件以及其他系统生成文件存储位置的方法</p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			checkData
		</span>
				()
			</div>

		
	
</div>
<a name="functioncheckDir" id="functioncheckDir"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">checkDir</span> (line <span class="line-number">388</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">自动生成以上要生成的所有东西</p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			checkDir
		</span>
				()
			</div>

		
	
</div>
<a name="functioncheckLang" id="functioncheckLang"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">checkLang</span> (line <span class="line-number">356</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			checkLang
		</span>
				()
			</div>

		
	
</div>
<a name="functioncheckLock" id="functioncheckLock"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">checkLock</span> (line <span class="line-number">400</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			checkLock
		</span>
				()
			</div>

		
	
</div>
<a name="functioncheckModel" id="functioncheckModel"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">checkModel</span> (line <span class="line-number">378</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			checkModel
		</span>
				()
			</div>

		
	
</div>
<a name="functioncheckStatic" id="functioncheckStatic"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">checkStatic</span> (line <span class="line-number">313</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">自动生成静态文件如：css，js的方法</p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			checkStatic
		</span>
				()
			</div>

		
	
</div>
<a name="functioncheckStr" id="functioncheckStr"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">checkStr</span> (line <span class="line-number">18</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">检查过滤字符串的函数，进行防注入处理</p>
	<ul class="tags">
				<li><span class="field">return:</span> 数组或字符串</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">type</span>
		<span class="method-name">
			checkStr
		</span>
					(<span class="var-type">type</span>&nbsp;<span class="var-name">$data</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$data</span><span class="var-description">: 要过滤的参数可以使数组或字符串</span>			</li>
				</ul>
		
	
</div>
<a name="functioncheckTheme" id="functioncheckTheme"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">checkTheme</span> (line <span class="line-number">272</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">自动生成初始模板的方法</p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			checkTheme
		</span>
				()
			</div>

		
	
</div>
<a name="functioncreateLock" id="functioncreateLock"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">createLock</span> (line <span class="line-number">409</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			createLock
		</span>
				()
			</div>

		
	
</div>
<a name="functionG" id="functionG"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">G</span> (line <span class="line-number">61</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">取得GET提交的数据，如果不传入参数则返回$_GET数组</p>
	<ul class="tags">
				<li><span class="field">return:</span> 提交参数的值</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">type</span>
		<span class="method-name">
			G
		</span>
					([<span class="var-type">type</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">null</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$name</span><span class="var-description">: 提交参数的名称</span>			</li>
				</ul>
		
	
</div>
<a name="functiongetLang" id="functiongetLang"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">getLang</span> (line <span class="line-number">193</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">用来寻找用户自定义的国际化文件</p>
	<ul class="tags">
				<li><span class="field">return:</span> 翻译之后的字符串，如果没有找到返回原字符串</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">type</span>
		<span class="method-name">
			getLang
		</span>
					(<span class="var-type">type</span>&nbsp;<span class="var-name">$name</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$name</span><span class="var-description">: 要翻译的字符串</span>			</li>
				</ul>
		
	
</div>
<a name="functiongetTplPath" id="functiongetTplPath"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">getTplPath</span> (line <span class="line-number">87</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">取得模板文件的路径，用在模板文件中包含其他模板文件的时候</p>
	<ul class="tags">
				<li><span class="field">return:</span> 返回全路径</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			getTplPath
		</span>
					(<span class="var-type">type</span>&nbsp;<span class="var-name">$name</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$name</span><span class="var-description">: 模板名称</span>			</li>
				</ul>
		
	
</div>
<a name="functionL" id="functionL"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">L</span> (line <span class="line-number">175</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">国际化方法，用来寻找各种语言包，并将之翻译显示在页面上</p>
	<div class="method-signature">
		<span class="method-result">type</span>
		<span class="method-name">
			L
		</span>
					(<span class="var-type">type</span>&nbsp;<span class="var-name">$name</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$name</span><span class="var-description">: 要翻译的字符串</span>			</li>
				</ul>
		
	
</div>
<a name="functionP" id="functionP"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">P</span> (line <span class="line-number">48</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">取得POST提交的数据，如果不传入参数则返回$_POST数组</p>
	<ul class="tags">
				<li><span class="field">return:</span> 提交表单的值</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">type</span>
		<span class="method-name">
			P
		</span>
					([<span class="var-type">type</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">null</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$name</span><span class="var-description">: 提交表单的名称</span>			</li>
				</ul>
		
	
</div>
<a name="functionR" id="functionR"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">R</span> (line <span class="line-number">74</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">取得REQUEST提交的数据，如果不传入参数则返回$_REQUEST数组</p>
	<ul class="tags">
				<li><span class="field">return:</span> 提交参数的值</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">type</span>
		<span class="method-name">
			R
		</span>
					([<span class="var-type">type</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">null</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$name</span><span class="var-description">: 提交参数的名称</span>			</li>
				</ul>
		
	
</div>
<a name="functionrun" id="functionrun"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">run</span> (line <span class="line-number">217</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">系统主函数用来按照系统指定的app，m,a去找到指定的组中的指定的控制器中的指定Action来运行</p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			run
		</span>
					([<span class="var-type">type</span>&nbsp;<span class="var-name">$app</span> = <span class="var-default">&#039;Home&#039;</span>], [<span class="var-type">type</span>&nbsp;<span class="var-name">$m</span> = <span class="var-default">&#039;Index&#039;</span>], [<span class="var-type">type</span>&nbsp;<span class="var-name">$a</span> = <span class="var-default">&#039;index&#039;</span>], <span class="var-type">type</span>&nbsp;<span class="var-name">$data</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$app</span><span class="var-description">: 应用名称</span>			</li>
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$m</span><span class="var-description">: Controller名称</span>			</li>
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$a</span><span class="var-description">: Acton名称</span>			</li>
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$data</span><span class="var-description">: 其他参数</span>			</li>
				</ul>
		
	
</div>
<a name="functionS" id="functionS"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">S</span> (line <span class="line-number">123</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">用来导入CSS和JS文件，可以采用两种方式，一种是以文件形式导入，一种是以代码形式导入，具体参考配置文件中的常量__CACHE_FORWARD_FILE__</p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			S
		</span>
					([<span class="var-type">type</span>&nbsp;<span class="var-name">$name</span> = <span class="var-default">&#039;base&#039;</span>], [<span class="var-type">type</span>&nbsp;<span class="var-name">$type</span> = <span class="var-default">&#039;css&#039;</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$name</span><span class="var-description">: 导入文件的名字</span>			</li>
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$type</span><span class="var-description">: 导入文件的扩展名</span>			</li>
				</ul>
		
	
</div>
<a name="functionU" id="functionU"><!-- --></a>
<div class="evenrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">U</span> (line <span class="line-number">98</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">用来处理跳转路径</p>
	<ul class="tags">
				<li><span class="field">return:</span> 完整链接地址</li>
			</ul>
	<div class="method-signature">
		<span class="method-result">string</span>
		<span class="method-name">
			U
		</span>
					(<span class="var-type">type</span>&nbsp;<span class="var-name">$router</span>, [<span class="var-type">type</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">null</span>])
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$router</span><span class="var-description">: 链接地址</span>			</li>
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$data</span><span class="var-description">: 要传递的参数</span>			</li>
				</ul>
		
	
</div>
<a name="function__autoload" id="function__autoload"><!-- --></a>
<div class="oddrow">
	
	<div>
		<img src="../media/images/Function.png" />
		<span class="method-title">__autoload</span> (line <span class="line-number">419</span>)
	</div> 

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">自动加载Controller的方法</p>
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			__autoload
		</span>
					(<span class="var-type">type</span>&nbsp;<span class="var-name">$name</span>)
			</div>

			<ul class="parameters">
					<li>
				<span class="var-type">type</span>
				<span class="var-name">$name</span><span class="var-description">: Controller的名字</span>			</li>
				</ul>
		
	
</div>
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Tue, 10 Jul 2012 17:18:14 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.4</a>
	</p>
	</div></body>
</html>